package com.smarth.zhizulian.utils.listhelper.impl.adapter;

import com.smarth.zhizulian.utils.listhelper.inter.IDataAdapter;

/**
 * Created by 18865 on 2018/1/16.
 */

public abstract class PageDataAdapter<T> implements IDataAdapter<T> {
    private T t;

    @Override
    public void onGetData(T t, boolean isRefresh) {
        this.t = t;
    }

    @Override
    public boolean isDataEmpty() {
        return t == null;
    }

    @Override
    public T getMyData() {
        return t;
    }
}
